package com.zyh.service;

import com.zyh.entity.Resource;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zyh.entity.ResultEntity;

import java.util.List;

/**
 * <p>
 * 菜单管理 服务类
 * </p>
 *
 * @author zhang
 * @since 2022-05-08
 */
public interface IResourceService extends IService<Resource> {
    /**
     * //展示主页面中左侧菜单
     * @param adminId
     * @return
     */
    public List<Resource> selectResourcesByAdminId(Integer adminId);

    /**
     * 获取权限树
     * @return
     */
    public List<Resource> selectMenu();
    /**
     * 获取权限树
     * @return
     */
    public List<Resource> selectChild(Long parentId,List<Resource> resources);
}
